<?php
//remaove_bug.php
//Desc: Script reads user selected bug record for removal
//Author: Brian Murphy (Group 1)
//CS633, BU, Summer 2012, Term 1

//Assign variable for bug to remove
	$bugToRemove = $_POST['bugID'];

//Database connection
	require_once('database2.php');

//Delete SQL query and submit for execution	
	$query = "DELETE FROM BugMaster
				WHERE bugID = '$bugToRemove'";
	$db->exec($query);

//Return to updated bug list	
	include('buglist.php');


?>